package com.ray.depot.table.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class StockHoldRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected int limitStart = -1;

    protected int limitEnd = -1;

    /**
     *
     */
    public StockHoldRecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    /**
     *
     * @param orderByClause
     */
    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    /**
     *
     */
    public String getOrderByClause() {
        return orderByClause;
    }

    /**
     *
     * @param distinct
     */
    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    /**
     *
     */
    public boolean isDistinct() {
        return distinct;
    }

    /**
     *
     */
    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    /**
     *
     * @param criteria
     */
    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    /**
     *
     */
    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    /**
     *
     */
    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    /**
     *
     */
    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    /**
     *
     */
    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     *
     * @param limitStart
     */
    public void setLimitStart(int limitStart) {
        this.limitStart=limitStart;
    }

    /**
     *
     */
    public int getLimitStart() {
        return limitStart;
    }

    /**
     *
     * @param limitEnd
     */
    public void setLimitEnd(int limitEnd) {
        this.limitEnd=limitEnd;
    }

    /**
     *
     */
    public int getLimitEnd() {
        return limitEnd;
    }

    /**
     * 类注释
     * GeneratedCriteria
     * 数据库表：dpt_stock_hold_record
     */
    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("ID like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("ID not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andSourceIdIsNull() {
            addCriterion("SOURCE_ID is null");
            return (Criteria) this;
        }

        public Criteria andSourceIdIsNotNull() {
            addCriterion("SOURCE_ID is not null");
            return (Criteria) this;
        }

        public Criteria andSourceIdEqualTo(String value) {
            addCriterion("SOURCE_ID =", value, "sourceId");
            return (Criteria) this;
        }

        public Criteria andSourceIdNotEqualTo(String value) {
            addCriterion("SOURCE_ID <>", value, "sourceId");
            return (Criteria) this;
        }

        public Criteria andSourceIdGreaterThan(String value) {
            addCriterion("SOURCE_ID >", value, "sourceId");
            return (Criteria) this;
        }

        public Criteria andSourceIdGreaterThanOrEqualTo(String value) {
            addCriterion("SOURCE_ID >=", value, "sourceId");
            return (Criteria) this;
        }

        public Criteria andSourceIdLessThan(String value) {
            addCriterion("SOURCE_ID <", value, "sourceId");
            return (Criteria) this;
        }

        public Criteria andSourceIdLessThanOrEqualTo(String value) {
            addCriterion("SOURCE_ID <=", value, "sourceId");
            return (Criteria) this;
        }

        public Criteria andSourceIdLike(String value) {
            addCriterion("SOURCE_ID like", value, "sourceId");
            return (Criteria) this;
        }

        public Criteria andSourceIdNotLike(String value) {
            addCriterion("SOURCE_ID not like", value, "sourceId");
            return (Criteria) this;
        }

        public Criteria andSourceIdIn(List<String> values) {
            addCriterion("SOURCE_ID in", values, "sourceId");
            return (Criteria) this;
        }

        public Criteria andSourceIdNotIn(List<String> values) {
            addCriterion("SOURCE_ID not in", values, "sourceId");
            return (Criteria) this;
        }

        public Criteria andSourceIdBetween(String value1, String value2) {
            addCriterion("SOURCE_ID between", value1, value2, "sourceId");
            return (Criteria) this;
        }

        public Criteria andSourceIdNotBetween(String value1, String value2) {
            addCriterion("SOURCE_ID not between", value1, value2, "sourceId");
            return (Criteria) this;
        }

        public Criteria andWarchouseIdIsNull() {
            addCriterion("WARCHOUSE_ID is null");
            return (Criteria) this;
        }

        public Criteria andWarchouseIdIsNotNull() {
            addCriterion("WARCHOUSE_ID is not null");
            return (Criteria) this;
        }

        public Criteria andWarchouseIdEqualTo(String value) {
            addCriterion("WARCHOUSE_ID =", value, "warchouseId");
            return (Criteria) this;
        }

        public Criteria andWarchouseIdNotEqualTo(String value) {
            addCriterion("WARCHOUSE_ID <>", value, "warchouseId");
            return (Criteria) this;
        }

        public Criteria andWarchouseIdGreaterThan(String value) {
            addCriterion("WARCHOUSE_ID >", value, "warchouseId");
            return (Criteria) this;
        }

        public Criteria andWarchouseIdGreaterThanOrEqualTo(String value) {
            addCriterion("WARCHOUSE_ID >=", value, "warchouseId");
            return (Criteria) this;
        }

        public Criteria andWarchouseIdLessThan(String value) {
            addCriterion("WARCHOUSE_ID <", value, "warchouseId");
            return (Criteria) this;
        }

        public Criteria andWarchouseIdLessThanOrEqualTo(String value) {
            addCriterion("WARCHOUSE_ID <=", value, "warchouseId");
            return (Criteria) this;
        }

        public Criteria andWarchouseIdLike(String value) {
            addCriterion("WARCHOUSE_ID like", value, "warchouseId");
            return (Criteria) this;
        }

        public Criteria andWarchouseIdNotLike(String value) {
            addCriterion("WARCHOUSE_ID not like", value, "warchouseId");
            return (Criteria) this;
        }

        public Criteria andWarchouseIdIn(List<String> values) {
            addCriterion("WARCHOUSE_ID in", values, "warchouseId");
            return (Criteria) this;
        }

        public Criteria andWarchouseIdNotIn(List<String> values) {
            addCriterion("WARCHOUSE_ID not in", values, "warchouseId");
            return (Criteria) this;
        }

        public Criteria andWarchouseIdBetween(String value1, String value2) {
            addCriterion("WARCHOUSE_ID between", value1, value2, "warchouseId");
            return (Criteria) this;
        }

        public Criteria andWarchouseIdNotBetween(String value1, String value2) {
            addCriterion("WARCHOUSE_ID not between", value1, value2, "warchouseId");
            return (Criteria) this;
        }

        public Criteria andRecordNoIsNull() {
            addCriterion("RECORD_NO is null");
            return (Criteria) this;
        }

        public Criteria andRecordNoIsNotNull() {
            addCriterion("RECORD_NO is not null");
            return (Criteria) this;
        }

        public Criteria andRecordNoEqualTo(String value) {
            addCriterion("RECORD_NO =", value, "recordNo");
            return (Criteria) this;
        }

        public Criteria andRecordNoNotEqualTo(String value) {
            addCriterion("RECORD_NO <>", value, "recordNo");
            return (Criteria) this;
        }

        public Criteria andRecordNoGreaterThan(String value) {
            addCriterion("RECORD_NO >", value, "recordNo");
            return (Criteria) this;
        }

        public Criteria andRecordNoGreaterThanOrEqualTo(String value) {
            addCriterion("RECORD_NO >=", value, "recordNo");
            return (Criteria) this;
        }

        public Criteria andRecordNoLessThan(String value) {
            addCriterion("RECORD_NO <", value, "recordNo");
            return (Criteria) this;
        }

        public Criteria andRecordNoLessThanOrEqualTo(String value) {
            addCriterion("RECORD_NO <=", value, "recordNo");
            return (Criteria) this;
        }

        public Criteria andRecordNoLike(String value) {
            addCriterion("RECORD_NO like", value, "recordNo");
            return (Criteria) this;
        }

        public Criteria andRecordNoNotLike(String value) {
            addCriterion("RECORD_NO not like", value, "recordNo");
            return (Criteria) this;
        }

        public Criteria andRecordNoIn(List<String> values) {
            addCriterion("RECORD_NO in", values, "recordNo");
            return (Criteria) this;
        }

        public Criteria andRecordNoNotIn(List<String> values) {
            addCriterion("RECORD_NO not in", values, "recordNo");
            return (Criteria) this;
        }

        public Criteria andRecordNoBetween(String value1, String value2) {
            addCriterion("RECORD_NO between", value1, value2, "recordNo");
            return (Criteria) this;
        }

        public Criteria andRecordNoNotBetween(String value1, String value2) {
            addCriterion("RECORD_NO not between", value1, value2, "recordNo");
            return (Criteria) this;
        }

        public Criteria andInNoIsNull() {
            addCriterion("IN_NO is null");
            return (Criteria) this;
        }

        public Criteria andInNoIsNotNull() {
            addCriterion("IN_NO is not null");
            return (Criteria) this;
        }

        public Criteria andInNoEqualTo(String value) {
            addCriterion("IN_NO =", value, "inNo");
            return (Criteria) this;
        }

        public Criteria andInNoNotEqualTo(String value) {
            addCriterion("IN_NO <>", value, "inNo");
            return (Criteria) this;
        }

        public Criteria andInNoGreaterThan(String value) {
            addCriterion("IN_NO >", value, "inNo");
            return (Criteria) this;
        }

        public Criteria andInNoGreaterThanOrEqualTo(String value) {
            addCriterion("IN_NO >=", value, "inNo");
            return (Criteria) this;
        }

        public Criteria andInNoLessThan(String value) {
            addCriterion("IN_NO <", value, "inNo");
            return (Criteria) this;
        }

        public Criteria andInNoLessThanOrEqualTo(String value) {
            addCriterion("IN_NO <=", value, "inNo");
            return (Criteria) this;
        }

        public Criteria andInNoLike(String value) {
            addCriterion("IN_NO like", value, "inNo");
            return (Criteria) this;
        }

        public Criteria andInNoNotLike(String value) {
            addCriterion("IN_NO not like", value, "inNo");
            return (Criteria) this;
        }

        public Criteria andInNoIn(List<String> values) {
            addCriterion("IN_NO in", values, "inNo");
            return (Criteria) this;
        }

        public Criteria andInNoNotIn(List<String> values) {
            addCriterion("IN_NO not in", values, "inNo");
            return (Criteria) this;
        }

        public Criteria andInNoBetween(String value1, String value2) {
            addCriterion("IN_NO between", value1, value2, "inNo");
            return (Criteria) this;
        }

        public Criteria andInNoNotBetween(String value1, String value2) {
            addCriterion("IN_NO not between", value1, value2, "inNo");
            return (Criteria) this;
        }

        public Criteria andHoldUserIsNull() {
            addCriterion("HOLD_USER is null");
            return (Criteria) this;
        }

        public Criteria andHoldUserIsNotNull() {
            addCriterion("HOLD_USER is not null");
            return (Criteria) this;
        }

        public Criteria andHoldUserEqualTo(String value) {
            addCriterion("HOLD_USER =", value, "holdUser");
            return (Criteria) this;
        }

        public Criteria andHoldUserNotEqualTo(String value) {
            addCriterion("HOLD_USER <>", value, "holdUser");
            return (Criteria) this;
        }

        public Criteria andHoldUserGreaterThan(String value) {
            addCriterion("HOLD_USER >", value, "holdUser");
            return (Criteria) this;
        }

        public Criteria andHoldUserGreaterThanOrEqualTo(String value) {
            addCriterion("HOLD_USER >=", value, "holdUser");
            return (Criteria) this;
        }

        public Criteria andHoldUserLessThan(String value) {
            addCriterion("HOLD_USER <", value, "holdUser");
            return (Criteria) this;
        }

        public Criteria andHoldUserLessThanOrEqualTo(String value) {
            addCriterion("HOLD_USER <=", value, "holdUser");
            return (Criteria) this;
        }

        public Criteria andHoldUserLike(String value) {
            addCriterion("HOLD_USER like", value, "holdUser");
            return (Criteria) this;
        }

        public Criteria andHoldUserNotLike(String value) {
            addCriterion("HOLD_USER not like", value, "holdUser");
            return (Criteria) this;
        }

        public Criteria andHoldUserIn(List<String> values) {
            addCriterion("HOLD_USER in", values, "holdUser");
            return (Criteria) this;
        }

        public Criteria andHoldUserNotIn(List<String> values) {
            addCriterion("HOLD_USER not in", values, "holdUser");
            return (Criteria) this;
        }

        public Criteria andHoldUserBetween(String value1, String value2) {
            addCriterion("HOLD_USER between", value1, value2, "holdUser");
            return (Criteria) this;
        }

        public Criteria andHoldUserNotBetween(String value1, String value2) {
            addCriterion("HOLD_USER not between", value1, value2, "holdUser");
            return (Criteria) this;
        }

        public Criteria andOutNoIsNull() {
            addCriterion("OUT_NO is null");
            return (Criteria) this;
        }

        public Criteria andOutNoIsNotNull() {
            addCriterion("OUT_NO is not null");
            return (Criteria) this;
        }

        public Criteria andOutNoEqualTo(String value) {
            addCriterion("OUT_NO =", value, "outNo");
            return (Criteria) this;
        }

        public Criteria andOutNoNotEqualTo(String value) {
            addCriterion("OUT_NO <>", value, "outNo");
            return (Criteria) this;
        }

        public Criteria andOutNoGreaterThan(String value) {
            addCriterion("OUT_NO >", value, "outNo");
            return (Criteria) this;
        }

        public Criteria andOutNoGreaterThanOrEqualTo(String value) {
            addCriterion("OUT_NO >=", value, "outNo");
            return (Criteria) this;
        }

        public Criteria andOutNoLessThan(String value) {
            addCriterion("OUT_NO <", value, "outNo");
            return (Criteria) this;
        }

        public Criteria andOutNoLessThanOrEqualTo(String value) {
            addCriterion("OUT_NO <=", value, "outNo");
            return (Criteria) this;
        }

        public Criteria andOutNoLike(String value) {
            addCriterion("OUT_NO like", value, "outNo");
            return (Criteria) this;
        }

        public Criteria andOutNoNotLike(String value) {
            addCriterion("OUT_NO not like", value, "outNo");
            return (Criteria) this;
        }

        public Criteria andOutNoIn(List<String> values) {
            addCriterion("OUT_NO in", values, "outNo");
            return (Criteria) this;
        }

        public Criteria andOutNoNotIn(List<String> values) {
            addCriterion("OUT_NO not in", values, "outNo");
            return (Criteria) this;
        }

        public Criteria andOutNoBetween(String value1, String value2) {
            addCriterion("OUT_NO between", value1, value2, "outNo");
            return (Criteria) this;
        }

        public Criteria andOutNoNotBetween(String value1, String value2) {
            addCriterion("OUT_NO not between", value1, value2, "outNo");
            return (Criteria) this;
        }

        public Criteria andResetUserIsNull() {
            addCriterion("RESET_USER is null");
            return (Criteria) this;
        }

        public Criteria andResetUserIsNotNull() {
            addCriterion("RESET_USER is not null");
            return (Criteria) this;
        }

        public Criteria andResetUserEqualTo(String value) {
            addCriterion("RESET_USER =", value, "resetUser");
            return (Criteria) this;
        }

        public Criteria andResetUserNotEqualTo(String value) {
            addCriterion("RESET_USER <>", value, "resetUser");
            return (Criteria) this;
        }

        public Criteria andResetUserGreaterThan(String value) {
            addCriterion("RESET_USER >", value, "resetUser");
            return (Criteria) this;
        }

        public Criteria andResetUserGreaterThanOrEqualTo(String value) {
            addCriterion("RESET_USER >=", value, "resetUser");
            return (Criteria) this;
        }

        public Criteria andResetUserLessThan(String value) {
            addCriterion("RESET_USER <", value, "resetUser");
            return (Criteria) this;
        }

        public Criteria andResetUserLessThanOrEqualTo(String value) {
            addCriterion("RESET_USER <=", value, "resetUser");
            return (Criteria) this;
        }

        public Criteria andResetUserLike(String value) {
            addCriterion("RESET_USER like", value, "resetUser");
            return (Criteria) this;
        }

        public Criteria andResetUserNotLike(String value) {
            addCriterion("RESET_USER not like", value, "resetUser");
            return (Criteria) this;
        }

        public Criteria andResetUserIn(List<String> values) {
            addCriterion("RESET_USER in", values, "resetUser");
            return (Criteria) this;
        }

        public Criteria andResetUserNotIn(List<String> values) {
            addCriterion("RESET_USER not in", values, "resetUser");
            return (Criteria) this;
        }

        public Criteria andResetUserBetween(String value1, String value2) {
            addCriterion("RESET_USER between", value1, value2, "resetUser");
            return (Criteria) this;
        }

        public Criteria andResetUserNotBetween(String value1, String value2) {
            addCriterion("RESET_USER not between", value1, value2, "resetUser");
            return (Criteria) this;
        }

        public Criteria andHoldStatusIsNull() {
            addCriterion("HOLD_STATUS is null");
            return (Criteria) this;
        }

        public Criteria andHoldStatusIsNotNull() {
            addCriterion("HOLD_STATUS is not null");
            return (Criteria) this;
        }

        public Criteria andHoldStatusEqualTo(String value) {
            addCriterion("HOLD_STATUS =", value, "holdStatus");
            return (Criteria) this;
        }

        public Criteria andHoldStatusNotEqualTo(String value) {
            addCriterion("HOLD_STATUS <>", value, "holdStatus");
            return (Criteria) this;
        }

        public Criteria andHoldStatusGreaterThan(String value) {
            addCriterion("HOLD_STATUS >", value, "holdStatus");
            return (Criteria) this;
        }

        public Criteria andHoldStatusGreaterThanOrEqualTo(String value) {
            addCriterion("HOLD_STATUS >=", value, "holdStatus");
            return (Criteria) this;
        }

        public Criteria andHoldStatusLessThan(String value) {
            addCriterion("HOLD_STATUS <", value, "holdStatus");
            return (Criteria) this;
        }

        public Criteria andHoldStatusLessThanOrEqualTo(String value) {
            addCriterion("HOLD_STATUS <=", value, "holdStatus");
            return (Criteria) this;
        }

        public Criteria andHoldStatusLike(String value) {
            addCriterion("HOLD_STATUS like", value, "holdStatus");
            return (Criteria) this;
        }

        public Criteria andHoldStatusNotLike(String value) {
            addCriterion("HOLD_STATUS not like", value, "holdStatus");
            return (Criteria) this;
        }

        public Criteria andHoldStatusIn(List<String> values) {
            addCriterion("HOLD_STATUS in", values, "holdStatus");
            return (Criteria) this;
        }

        public Criteria andHoldStatusNotIn(List<String> values) {
            addCriterion("HOLD_STATUS not in", values, "holdStatus");
            return (Criteria) this;
        }

        public Criteria andHoldStatusBetween(String value1, String value2) {
            addCriterion("HOLD_STATUS between", value1, value2, "holdStatus");
            return (Criteria) this;
        }

        public Criteria andHoldStatusNotBetween(String value1, String value2) {
            addCriterion("HOLD_STATUS not between", value1, value2, "holdStatus");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("CREATE_TIME is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("CREATE_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("CREATE_TIME =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("CREATE_TIME <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("CREATE_TIME >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CREATE_TIME >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("CREATE_TIME <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("CREATE_TIME <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("CREATE_TIME in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("CREATE_TIME not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("CREATE_TIME between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("CREATE_TIME not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateByOrgIsNull() {
            addCriterion("CREATE_BY_ORG is null");
            return (Criteria) this;
        }

        public Criteria andCreateByOrgIsNotNull() {
            addCriterion("CREATE_BY_ORG is not null");
            return (Criteria) this;
        }

        public Criteria andCreateByOrgEqualTo(String value) {
            addCriterion("CREATE_BY_ORG =", value, "createByOrg");
            return (Criteria) this;
        }

        public Criteria andCreateByOrgNotEqualTo(String value) {
            addCriterion("CREATE_BY_ORG <>", value, "createByOrg");
            return (Criteria) this;
        }

        public Criteria andCreateByOrgGreaterThan(String value) {
            addCriterion("CREATE_BY_ORG >", value, "createByOrg");
            return (Criteria) this;
        }

        public Criteria andCreateByOrgGreaterThanOrEqualTo(String value) {
            addCriterion("CREATE_BY_ORG >=", value, "createByOrg");
            return (Criteria) this;
        }

        public Criteria andCreateByOrgLessThan(String value) {
            addCriterion("CREATE_BY_ORG <", value, "createByOrg");
            return (Criteria) this;
        }

        public Criteria andCreateByOrgLessThanOrEqualTo(String value) {
            addCriterion("CREATE_BY_ORG <=", value, "createByOrg");
            return (Criteria) this;
        }

        public Criteria andCreateByOrgLike(String value) {
            addCriterion("CREATE_BY_ORG like", value, "createByOrg");
            return (Criteria) this;
        }

        public Criteria andCreateByOrgNotLike(String value) {
            addCriterion("CREATE_BY_ORG not like", value, "createByOrg");
            return (Criteria) this;
        }

        public Criteria andCreateByOrgIn(List<String> values) {
            addCriterion("CREATE_BY_ORG in", values, "createByOrg");
            return (Criteria) this;
        }

        public Criteria andCreateByOrgNotIn(List<String> values) {
            addCriterion("CREATE_BY_ORG not in", values, "createByOrg");
            return (Criteria) this;
        }

        public Criteria andCreateByOrgBetween(String value1, String value2) {
            addCriterion("CREATE_BY_ORG between", value1, value2, "createByOrg");
            return (Criteria) this;
        }

        public Criteria andCreateByOrgNotBetween(String value1, String value2) {
            addCriterion("CREATE_BY_ORG not between", value1, value2, "createByOrg");
            return (Criteria) this;
        }

        public Criteria andCreateByUserIsNull() {
            addCriterion("CREATE_BY_USER is null");
            return (Criteria) this;
        }

        public Criteria andCreateByUserIsNotNull() {
            addCriterion("CREATE_BY_USER is not null");
            return (Criteria) this;
        }

        public Criteria andCreateByUserEqualTo(String value) {
            addCriterion("CREATE_BY_USER =", value, "createByUser");
            return (Criteria) this;
        }

        public Criteria andCreateByUserNotEqualTo(String value) {
            addCriterion("CREATE_BY_USER <>", value, "createByUser");
            return (Criteria) this;
        }

        public Criteria andCreateByUserGreaterThan(String value) {
            addCriterion("CREATE_BY_USER >", value, "createByUser");
            return (Criteria) this;
        }

        public Criteria andCreateByUserGreaterThanOrEqualTo(String value) {
            addCriterion("CREATE_BY_USER >=", value, "createByUser");
            return (Criteria) this;
        }

        public Criteria andCreateByUserLessThan(String value) {
            addCriterion("CREATE_BY_USER <", value, "createByUser");
            return (Criteria) this;
        }

        public Criteria andCreateByUserLessThanOrEqualTo(String value) {
            addCriterion("CREATE_BY_USER <=", value, "createByUser");
            return (Criteria) this;
        }

        public Criteria andCreateByUserLike(String value) {
            addCriterion("CREATE_BY_USER like", value, "createByUser");
            return (Criteria) this;
        }

        public Criteria andCreateByUserNotLike(String value) {
            addCriterion("CREATE_BY_USER not like", value, "createByUser");
            return (Criteria) this;
        }

        public Criteria andCreateByUserIn(List<String> values) {
            addCriterion("CREATE_BY_USER in", values, "createByUser");
            return (Criteria) this;
        }

        public Criteria andCreateByUserNotIn(List<String> values) {
            addCriterion("CREATE_BY_USER not in", values, "createByUser");
            return (Criteria) this;
        }

        public Criteria andCreateByUserBetween(String value1, String value2) {
            addCriterion("CREATE_BY_USER between", value1, value2, "createByUser");
            return (Criteria) this;
        }

        public Criteria andCreateByUserNotBetween(String value1, String value2) {
            addCriterion("CREATE_BY_USER not between", value1, value2, "createByUser");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("UPDATE_TIME is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("UPDATE_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("UPDATE_TIME =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("UPDATE_TIME <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("UPDATE_TIME >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("UPDATE_TIME >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("UPDATE_TIME <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("UPDATE_TIME <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("UPDATE_TIME in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("UPDATE_TIME not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("UPDATE_TIME between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("UPDATE_TIME not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateByOrgIsNull() {
            addCriterion("UPDATE_BY_ORG is null");
            return (Criteria) this;
        }

        public Criteria andUpdateByOrgIsNotNull() {
            addCriterion("UPDATE_BY_ORG is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateByOrgEqualTo(String value) {
            addCriterion("UPDATE_BY_ORG =", value, "updateByOrg");
            return (Criteria) this;
        }

        public Criteria andUpdateByOrgNotEqualTo(String value) {
            addCriterion("UPDATE_BY_ORG <>", value, "updateByOrg");
            return (Criteria) this;
        }

        public Criteria andUpdateByOrgGreaterThan(String value) {
            addCriterion("UPDATE_BY_ORG >", value, "updateByOrg");
            return (Criteria) this;
        }

        public Criteria andUpdateByOrgGreaterThanOrEqualTo(String value) {
            addCriterion("UPDATE_BY_ORG >=", value, "updateByOrg");
            return (Criteria) this;
        }

        public Criteria andUpdateByOrgLessThan(String value) {
            addCriterion("UPDATE_BY_ORG <", value, "updateByOrg");
            return (Criteria) this;
        }

        public Criteria andUpdateByOrgLessThanOrEqualTo(String value) {
            addCriterion("UPDATE_BY_ORG <=", value, "updateByOrg");
            return (Criteria) this;
        }

        public Criteria andUpdateByOrgLike(String value) {
            addCriterion("UPDATE_BY_ORG like", value, "updateByOrg");
            return (Criteria) this;
        }

        public Criteria andUpdateByOrgNotLike(String value) {
            addCriterion("UPDATE_BY_ORG not like", value, "updateByOrg");
            return (Criteria) this;
        }

        public Criteria andUpdateByOrgIn(List<String> values) {
            addCriterion("UPDATE_BY_ORG in", values, "updateByOrg");
            return (Criteria) this;
        }

        public Criteria andUpdateByOrgNotIn(List<String> values) {
            addCriterion("UPDATE_BY_ORG not in", values, "updateByOrg");
            return (Criteria) this;
        }

        public Criteria andUpdateByOrgBetween(String value1, String value2) {
            addCriterion("UPDATE_BY_ORG between", value1, value2, "updateByOrg");
            return (Criteria) this;
        }

        public Criteria andUpdateByOrgNotBetween(String value1, String value2) {
            addCriterion("UPDATE_BY_ORG not between", value1, value2, "updateByOrg");
            return (Criteria) this;
        }

        public Criteria andUpdateByUserIsNull() {
            addCriterion("UPDATE_BY_USER is null");
            return (Criteria) this;
        }

        public Criteria andUpdateByUserIsNotNull() {
            addCriterion("UPDATE_BY_USER is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateByUserEqualTo(String value) {
            addCriterion("UPDATE_BY_USER =", value, "updateByUser");
            return (Criteria) this;
        }

        public Criteria andUpdateByUserNotEqualTo(String value) {
            addCriterion("UPDATE_BY_USER <>", value, "updateByUser");
            return (Criteria) this;
        }

        public Criteria andUpdateByUserGreaterThan(String value) {
            addCriterion("UPDATE_BY_USER >", value, "updateByUser");
            return (Criteria) this;
        }

        public Criteria andUpdateByUserGreaterThanOrEqualTo(String value) {
            addCriterion("UPDATE_BY_USER >=", value, "updateByUser");
            return (Criteria) this;
        }

        public Criteria andUpdateByUserLessThan(String value) {
            addCriterion("UPDATE_BY_USER <", value, "updateByUser");
            return (Criteria) this;
        }

        public Criteria andUpdateByUserLessThanOrEqualTo(String value) {
            addCriterion("UPDATE_BY_USER <=", value, "updateByUser");
            return (Criteria) this;
        }

        public Criteria andUpdateByUserLike(String value) {
            addCriterion("UPDATE_BY_USER like", value, "updateByUser");
            return (Criteria) this;
        }

        public Criteria andUpdateByUserNotLike(String value) {
            addCriterion("UPDATE_BY_USER not like", value, "updateByUser");
            return (Criteria) this;
        }

        public Criteria andUpdateByUserIn(List<String> values) {
            addCriterion("UPDATE_BY_USER in", values, "updateByUser");
            return (Criteria) this;
        }

        public Criteria andUpdateByUserNotIn(List<String> values) {
            addCriterion("UPDATE_BY_USER not in", values, "updateByUser");
            return (Criteria) this;
        }

        public Criteria andUpdateByUserBetween(String value1, String value2) {
            addCriterion("UPDATE_BY_USER between", value1, value2, "updateByUser");
            return (Criteria) this;
        }

        public Criteria andUpdateByUserNotBetween(String value1, String value2) {
            addCriterion("UPDATE_BY_USER not between", value1, value2, "updateByUser");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIsNull() {
            addCriterion("IS_DELETE is null");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIsNotNull() {
            addCriterion("IS_DELETE is not null");
            return (Criteria) this;
        }

        public Criteria andIsDeleteEqualTo(String value) {
            addCriterion("IS_DELETE =", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotEqualTo(String value) {
            addCriterion("IS_DELETE <>", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteGreaterThan(String value) {
            addCriterion("IS_DELETE >", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteGreaterThanOrEqualTo(String value) {
            addCriterion("IS_DELETE >=", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLessThan(String value) {
            addCriterion("IS_DELETE <", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLessThanOrEqualTo(String value) {
            addCriterion("IS_DELETE <=", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLike(String value) {
            addCriterion("IS_DELETE like", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotLike(String value) {
            addCriterion("IS_DELETE not like", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIn(List<String> values) {
            addCriterion("IS_DELETE in", values, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotIn(List<String> values) {
            addCriterion("IS_DELETE not in", values, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteBetween(String value1, String value2) {
            addCriterion("IS_DELETE between", value1, value2, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotBetween(String value1, String value2) {
            addCriterion("IS_DELETE not between", value1, value2, "isDelete");
            return (Criteria) this;
        }

        public Criteria andTenantIdIsNull() {
            addCriterion("TENANT_ID is null");
            return (Criteria) this;
        }

        public Criteria andTenantIdIsNotNull() {
            addCriterion("TENANT_ID is not null");
            return (Criteria) this;
        }

        public Criteria andTenantIdEqualTo(String value) {
            addCriterion("TENANT_ID =", value, "tenantId");
            return (Criteria) this;
        }

        public Criteria andTenantIdNotEqualTo(String value) {
            addCriterion("TENANT_ID <>", value, "tenantId");
            return (Criteria) this;
        }

        public Criteria andTenantIdGreaterThan(String value) {
            addCriterion("TENANT_ID >", value, "tenantId");
            return (Criteria) this;
        }

        public Criteria andTenantIdGreaterThanOrEqualTo(String value) {
            addCriterion("TENANT_ID >=", value, "tenantId");
            return (Criteria) this;
        }

        public Criteria andTenantIdLessThan(String value) {
            addCriterion("TENANT_ID <", value, "tenantId");
            return (Criteria) this;
        }

        public Criteria andTenantIdLessThanOrEqualTo(String value) {
            addCriterion("TENANT_ID <=", value, "tenantId");
            return (Criteria) this;
        }

        public Criteria andTenantIdLike(String value) {
            addCriterion("TENANT_ID like", value, "tenantId");
            return (Criteria) this;
        }

        public Criteria andTenantIdNotLike(String value) {
            addCriterion("TENANT_ID not like", value, "tenantId");
            return (Criteria) this;
        }

        public Criteria andTenantIdIn(List<String> values) {
            addCriterion("TENANT_ID in", values, "tenantId");
            return (Criteria) this;
        }

        public Criteria andTenantIdNotIn(List<String> values) {
            addCriterion("TENANT_ID not in", values, "tenantId");
            return (Criteria) this;
        }

        public Criteria andTenantIdBetween(String value1, String value2) {
            addCriterion("TENANT_ID between", value1, value2, "tenantId");
            return (Criteria) this;
        }

        public Criteria andTenantIdNotBetween(String value1, String value2) {
            addCriterion("TENANT_ID not between", value1, value2, "tenantId");
            return (Criteria) this;
        }

        public Criteria andIdLikeInsensitive(String value) {
            addCriterion("upper(ID) like", value.toUpperCase(), "id");
            return (Criteria) this;
        }

        public Criteria andSourceIdLikeInsensitive(String value) {
            addCriterion("upper(SOURCE_ID) like", value.toUpperCase(), "sourceId");
            return (Criteria) this;
        }

        public Criteria andWarchouseIdLikeInsensitive(String value) {
            addCriterion("upper(WARCHOUSE_ID) like", value.toUpperCase(), "warchouseId");
            return (Criteria) this;
        }

        public Criteria andRecordNoLikeInsensitive(String value) {
            addCriterion("upper(RECORD_NO) like", value.toUpperCase(), "recordNo");
            return (Criteria) this;
        }

        public Criteria andInNoLikeInsensitive(String value) {
            addCriterion("upper(IN_NO) like", value.toUpperCase(), "inNo");
            return (Criteria) this;
        }

        public Criteria andHoldUserLikeInsensitive(String value) {
            addCriterion("upper(HOLD_USER) like", value.toUpperCase(), "holdUser");
            return (Criteria) this;
        }

        public Criteria andOutNoLikeInsensitive(String value) {
            addCriterion("upper(OUT_NO) like", value.toUpperCase(), "outNo");
            return (Criteria) this;
        }

        public Criteria andResetUserLikeInsensitive(String value) {
            addCriterion("upper(RESET_USER) like", value.toUpperCase(), "resetUser");
            return (Criteria) this;
        }

        public Criteria andHoldStatusLikeInsensitive(String value) {
            addCriterion("upper(HOLD_STATUS) like", value.toUpperCase(), "holdStatus");
            return (Criteria) this;
        }

        public Criteria andCreateByOrgLikeInsensitive(String value) {
            addCriterion("upper(CREATE_BY_ORG) like", value.toUpperCase(), "createByOrg");
            return (Criteria) this;
        }

        public Criteria andCreateByUserLikeInsensitive(String value) {
            addCriterion("upper(CREATE_BY_USER) like", value.toUpperCase(), "createByUser");
            return (Criteria) this;
        }

        public Criteria andUpdateByOrgLikeInsensitive(String value) {
            addCriterion("upper(UPDATE_BY_ORG) like", value.toUpperCase(), "updateByOrg");
            return (Criteria) this;
        }

        public Criteria andUpdateByUserLikeInsensitive(String value) {
            addCriterion("upper(UPDATE_BY_USER) like", value.toUpperCase(), "updateByUser");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLikeInsensitive(String value) {
            addCriterion("upper(IS_DELETE) like", value.toUpperCase(), "isDelete");
            return (Criteria) this;
        }

        public Criteria andTenantIdLikeInsensitive(String value) {
            addCriterion("upper(TENANT_ID) like", value.toUpperCase(), "tenantId");
            return (Criteria) this;
        }
    }

    /**
     * 类注释
     * Criteria
     * 数据库表：dpt_stock_hold_record
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    /**
     * 类注释
     * Criterion
     * 数据库表：dpt_stock_hold_record
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}